package com.cj.library.widget.recyclerview.adapter;

import android.support.annotation.LayoutRes;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.cj.library.widget.recyclerview.adapter.BaseRecyclerAdapter;
import com.cj.library.widget.recyclerview.itemanimator.ViewAnimatorUtiles;

import java.util.Collection;

/**
 * Created by peter on 2016/9/8.
 */
public abstract class EnterFromRightAdapter<T> extends BaseRecyclerAdapter<T> {
    public EnterFromRightAdapter(RecyclerView view, Collection<T> mDatas) {
        super(view, mDatas);
    }

    public EnterFromRightAdapter(RecyclerView view, Collection<T> mDatas, @LayoutRes Integer layoutId) {
        super(view, mDatas, layoutId);
    }

    @Override
    protected void additemAnimation(View view) {
        ViewAnimatorUtiles.enterFromRight(view);
    }
}
